#-------------------------------------------------
#
# Project created by QtCreator 2013-05-12T10:58:55
#
#-------------------------------------------------

QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = clMark
TEMPLATE = app

# Mac OS X: It should work right out of the box.
macx {
    LIBS += -framework OpenCL
}

# Linux: Install the CUDA Toolkit with the following command.
#        sudo apt-get install nvidia-cuda-dev nvidia-cuda-toolkit
unix:!macx {
    LIBS += -L/usr/lib/nvidia-cuda-toolkit/lib/ -lOpenCL
    INCLUDEPATH += /usr/lib/nvidia-cuda-toolkit//include
}

# Windows: Install CUDA Toolkit to a path without white spaces like shown below.
#          You may have to edit the version number in the path.
win32 {
    LIBS += -LC:/Files/SDK/CUDA/v4.2/lib/Win32/ -lOpenCL
    INCLUDEPATH += C:/Files/SDK/CUDA/v4.2/include
}

SOURCES += main.cpp\
    ui/MainWindow.cpp \
    cl/PlatformInfo.cpp \
    cl/DeviceInfo.cpp \
    ui/CLMarkWidget.cpp \
    ui/TextItemDelegate.cpp \
    cl/Benchmark.cpp \
    ui/BenchmarkWidget.cpp \
    ui/InfoWidget.cpp

HEADERS  += \
    cl/cl.hpp \
    cl/PlatformInfo.hpp \
    ui/MainWindow.hpp \
    cl/DeviceInfo.hpp \
    ui/CLMarkWidget.hpp \
    ui/TextItemDelegate.hpp \
    cl/Benchmark.hpp \
    ui/BenchmarkWidget.hpp \
    ui/InfoWidget.hpp \
    cl/Profiler.hpp

RESOURCES += \
    res/kernel.qrc

OTHER_FILES += \
    res/kernel/benchmark_fp64.cl \
    res/kernel/benchmark_fp32.cl \
    res/splash/OpenCL.png
